package com.zuipin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zuipin.entity.product.CatgroyPropView;
import com.zuipin.entity.product.PropertiesInfo;
import com.zuipin.util.Pagination;
import com.zuipin.vo.PropViewSearchVo;

/**
 * @date 2017-8-9 19:58:27
 * @author zhuangjiajian
 * 分类属性可见性 mapper
 */
@Mapper
public interface CatgroyPropViewMapper {
	
	/**
	 * 有选择性的条件进行筛选
	 * @param record
	 * @return
	 */
	List<CatgroyPropView> selectBySelective(@Param(value = "record") CatgroyPropView record);
	
	/**
	 * 批量添加分类属性可见性
	 * @author zhuangjiajian
	 * @date 2017-8-15 15:21:20
	 * @param item
	 * @return
	 */
	int insertBatch(List<CatgroyPropView> cateProps);
	
	/**
	 * @author zhuangjiajian
	 * @date 2017-8-15 15:21:54
	 * 批量更新分类属性可见性
	 * @param cateProps
	 * @return
	 */
	int updateBatch(List<CatgroyPropView> cateProps);
	
	int insert(@Param(value = "item") CatgroyPropView item);
	
	List<PropertiesInfo> findPropView(@Param(value = "page") Pagination page, @Param(value = "propViewSearchVo") PropViewSearchVo propViewSearchVo);
	
}
